<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ include file="/views/common/header.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>电子一卡通管理系统</title>
<script type="text/javascript">  
$(document).ready(function () {
	var text = $("#errorMessage").val();
	if (text != "")
	{
		$.messager.show({
		       title: '提示',
		       msg: $("#errorMessage").val(),
		       timeout: 3000,
		       showType: 'slide'
		 });		
	}

});  
function doSubmit(){
	$('#fm').submit();
	return;
	var dbkey = findCard();
	if(""!=dbkey){
		var cardPwd = getUserPwdFromManagerCard();
		if(""!=cardPwd){
			$('#cardPwd').val(cardPwd);
			$('#dbkey').val(dbkey);
			$('#fm').submit();
		}
	}else{
		message("请将操作员卡放到读卡器上.");
	}
}
</script>
</head>
<body class="login_bg">
	<%
		String str = (String)request.getAttribute("error");
		if (str ==null){
		  str = "";
		}
	%>
    <input type="hidden" value="<%=str%>" id="errorMessage"/>
	<form  id="fm" method="post" action="<%=path%>/j_spring_security_check">
		<table align="center" border="0" cellpadding="0" cellspacing="0" class="login_table">
		  <tr>
		    <td><table width="521" height="289" border="0" align="center" cellpadding="0" cellspacing="0" background="<%=basePath%>img/login.png">
		      <tr>
		        <td><table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
		          <tr>
		            <td>&nbsp;</td>
		            <td height="80">&nbsp;</td>
		            <td>&nbsp;</td>
		          </tr>
		          <tr>
		            <td height="40">&nbsp;</td>
		            <td align="right">用户名：</td>
		            <td>
		            <p><input id="ajax" name="ajax"  type="hidden"  value="ajax"></input></p>
		            <input class="easyui-validatebox" type="text" name="j_username" value="admin" id="userName" data-options="required:true"></input></td>
		          </tr>
		          <tr>
		            <td height="40">&nbsp;</td>
		            <td align="right">密码：</td>
		            <td><input type="hidden" value="D11CE30A" id="dbkey" name="dbkey" />
		            <input type="hidden" id="cardPwd" name="cardPwd" /><input class="easyui-validatebox" id="password" type="password" value="123" data-options="required:true" name="j_password" ></input></td>
		          </tr>
		          <tr>
		            <td width="140" height="50">&nbsp;</td>
		            <td>&nbsp;</td>
		           <td><input onclick="doSubmit();" type="button" class="btn"  value="提  交" />
		              &nbsp;<input name="button2" type="reset" class="btn" id="button2" value="重  置" /></td>
		          </tr>
		        </table>
		        </td>
		      </tr>
				<tr height="20"><td ><div align="center" ><a style="text-decoration:none;" href="/MySpringMVC/activex/activex.exe">下载控件</a></div></td></tr>
		    </table>
		    </td>
		  </tr>
		 
		</table>
	</form>
</body>
</html>